<include file="Public/frame-header" />
</head>
<body class="J_scroll_fixed" style="min-width:800px;">
<div class="wrap J_check_wrap">
	<ul class="nav nav-tabs">
	   <li class="active"><a href="{$url}">短信记录</a></li>
	</ul>
	<form class="well form-search" method="get" action="{$url}">
		<div class="search_type cc mb10">
			<div class="mb10">
				<span class="mr20">分类： 
					
					<php>$support_types=array("verificiation"=>"验证短信","service"=>"服务短信");</php>
					短信类型：<select name="type">
						<option value="-1"></option>
						<foreach name="support_types" item="vo"> <php>$type_selected=$type==$key?"selected":"";</php>
						<option value="{$key}"{$type_selected}>{$vo}</option>
						</foreach>
					</select> &nbsp;&nbsp;
					
					<php>$support_status=array("0"=>"失败","1"=>"成功");</php>
					短信状态：<select name="status">
						<option value="-1"></option>
						<foreach name="support_status" item="vo"> <php>$status_selected=$status===$key?"selected":"";</php>
						<option value="{$key}"{$status_selected}>{$vo}</option>
						</foreach>
					</select> &nbsp;&nbsp;
					
					手机号： <input type="text" name="mobile" value="" style="width: 200px;" placeholder="手机号"> &nbsp;&nbsp;
					发送时间： <input type="text" name="start_time" class="J_date" value="{$formget.start_time|default=''}" style="width: 80px;" autocomplete="off">-
						<input type="text" class="J_date" name="end_time" value="{$formget.end_time}" style="width: 80px;" autocomplete="off"> &nbsp; &nbsp;
					
					<input type="submit" class="btn btn-primary" value="搜索">
				</span>
			</div>
		</div>
	</form>
	<form class="J_ajaxForm" action="" method="post">
<!-- 		<div class="table-actions"> -->
<!-- 			<button class="btn btn-primary btn-small J_ajax_submit_btn" type="submit" data-action="{:u('/Admin/MessageRecord/resend')}" data-subcheck="true" data-msg="你确定重新发送吗？">重新发送</button> -->
<!-- 		</div> -->
		<table class="table table-hover table-bordered table-list">
			<thead>
				<tr>
					<th width="15"><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></th>
					<th width="50">ID</th>
					<th width="100">短信类型</th>
					<th>短信类型标识</th>
					<th>手机号</th>
					<th>订单编号</th>
					<th>状态</th>
					<th>发送时间</th>
					<th width="50">操作</th>
				</tr>
			</thead>
			<php>$status=array("1"=>"已审核","0"=>"未审核");</php>
			<foreach name="list" item="vo">
			<tr>
				<td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="ids[]" value="{$vo.id}" ></td>
				<td>{$vo.id}</td>
				<td><if condition="$vo ['type'] eq 'verification'">验证短息
					<else />
					服务短信
				</if></td>
				<td>{$vo.type}</td>
				<td>{$vo.mobile}</td>
				<td>{$vo.order_id}</td>
				<td ><eq name="vo.status" value="1">发送成功</eq>
					<eq name="vo.status" value="0">发送失败</eq>
				</td>
				<td >{$vo.created|date="Y-m-d H:i:s",###}</td>
				<td >
					<if condition="$vo['status'] eq 0">
					<a href="{:U('/Admin/MessageRecord/resend/id/'.$vo['id'])}">重新发送</a>
					</if>
				</td>
			</tr>
			</foreach>
		    <tfoot>
				<tr>
					<th width="15"><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></th>
					<th width="50">ID</th>
					<th width="100">短信类型</th>
					<th>短信类型标识</th>
					<th>手机号</th>
					<th>订单编号</th>
					<th>状态</th>
					<th>发送时间</th>
					<th width="50">操作</th>
				</tr>
			</tfoot>
		</table>
<!-- 		<div class="table-actions"> -->
<!-- 			<button class="btn btn-primary btn-small J_ajax_submit_btn" type="submit" data-action="{:U('/Admin/MessageRecord/resend')}" data-subcheck="true" data-msg="你确定重新发送吗？">重新发送</button> -->
<!-- 		</div> -->
		<div class="pagination">{$Page}</div>
	</form>
</div>
<script src="__ADMIN__/statics/js/common.js"></script>
</body>
</html>
